import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
// 注册elementPlus
import ElementPlus from 'element-plus'
import "element-plus/dist/index.css"
// 注册持久化pinia
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)

app.use(pinia)
app.use(router)
// 挂载
app.use(ElementPlus)

app.mount('#app')
